package com.soladhoc.webapps.client.mvp;

import com.gwtplatform.mvp.client.ViewImpl;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Label;

public class AnnouncesView extends ViewImpl implements
		AnnouncesPresenter.AnnounceView {

	private final Widget widget;

	public interface Binder extends UiBinder<Widget, AnnouncesView> {
	}

	@Inject
	public AnnouncesView(final Binder binder) {
		widget = binder.createAndBindUi(this);
	}

	@Override
	public Widget asWidget() {
		return widget;
	}

	@Override
	public void setTitle(String title) {
		titleOfAnnounce.setText(title);
	}

	@Override
	public void setTextOfAnnounce(String text) {
		this.textOfAnnounce.setText(text);
	}
	@UiField Label titleOfAnnounce;
	@UiField Label textOfAnnounce;
}
